<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style>
			.div1{
				width: 100px;
				height: 100px;
				background-color: yellow;
			}
			
			.div2{
				width: 100px;
				height: 100px;
				background-color: gold;
				position: relative; /*设置相对定位*/
				left: 100px;
			}
			
			
			.div3{
				width: 100px;
				height: 100px;
				background-color: blueviolet;
				position: relative;
				top: -100px;
				left: 200px;
			}
			.div4{
				width: 100px;
				height: 100px;
				background-color: greenyellow;
			}
			
		</style>
	</head>
	<body>
		<!--
        	 相对定位：  相对于这个元素本身所处的位置移动 ，而不会影响其他元素的位置
        	 
        -->
		<div class="div1">
			 div1
		</div>
		<div class="div2">
			 div2
		</div>
		<div class="div3">
			 div3
		</div>
		<div class="div4">
			div4
		</div>
	</body>
</html>
